.class public Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;
.super Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;
.source "DefaultAnimationHandler.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler$SubActionItemAnimationListener;
    }
.end annotation


# static fields
.field protected static final DURATION:I = 0x168

.field protected static final LAG_BETWEEN_ITEMS:I = 0x4b


# instance fields
.field private animating:Z

.field private mAnimators:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/animation/Animator;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;-><init>()V

    .line 34
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    .line 37
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->setAnimating(Z)V

    .line 38
    return-void
.end method


# virtual methods
.method public animateMenuClosing(Landroid/graphics/Point;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;Landroid/animation/Animator$AnimatorListener;)V
    .registers 22
    .param p1, "center"    # Landroid/graphics/Point;
    .param p2, "selectedItem"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    .param p3, "listener"    # Landroid/animation/Animator$AnimatorListener;

    .prologue
    .line 81
    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p3

    invoke-super {v0, v1, v2}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->animateMenuOpening(Landroid/graphics/Point;Landroid/animation/Animator$AnimatorListener;)V

    .line 83
    const/4 v13, 0x1

    move-object/from16 v0, p0

    invoke-virtual {v0, v13}, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->setAnimating(Z)V

    .line 85
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    invoke-virtual {v13}, Ljava/util/ArrayList;->clear()V

    .line 86
    if-nez p2, :cond_160

    .line 87
    const/4 v6, 0x0

    .local v6, "i":I
    :goto_19
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v13

    if-ge v6, v13, :cond_217

    .line 88
    sget-object v14, Landroid/view/View;->TRANSLATION_X:Landroid/util/Property;

    const/4 v13, 0x1

    new-array v15, v13, [F

    const/16 v16, 0x0

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v13, v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->x:I

    move-object/from16 v0, p1

    iget v0, v0, Landroid/graphics/Point;->x:I

    move/from16 v17, v0

    sub-int v17, v13, v17

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v13, v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    div-int/lit8 v13, v13, 0x2

    add-int v13, v13, v17

    neg-int v13, v13

    int-to-float v13, v13

    aput v13, v15, v16

    invoke-static {v14, v15}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v9

    .line 89
    .local v9, "pvhX":Landroid/animation/PropertyValuesHolder;
    sget-object v14, Landroid/view/View;->TRANSLATION_Y:Landroid/util/Property;

    const/4 v13, 0x1

    new-array v15, v13, [F

    const/16 v16, 0x0

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v13, v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->y:I

    move-object/from16 v0, p1

    iget v0, v0, Landroid/graphics/Point;->y:I

    move/from16 v17, v0

    sub-int v17, v13, v17

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v13, v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    div-int/lit8 v13, v13, 0x2

    add-int v13, v13, v17

    neg-int v13, v13

    int-to-float v13, v13

    aput v13, v15, v16

    invoke-static {v14, v15}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v10

    .line 90
    .local v10, "pvhY":Landroid/animation/PropertyValuesHolder;
    sget-object v13, Landroid/view/View;->ROTATION:Landroid/util/Property;

    const/4 v14, 0x1

    new-array v14, v14, [F

    const/4 v15, 0x0

    const/high16 v16, -0x3bcc0000

    aput v16, v14, v15

    invoke-static {v13, v14}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v8

    .line 91
    .local v8, "pvhR":Landroid/animation/PropertyValuesHolder;
    sget-object v13, Landroid/view/View;->SCALE_X:Landroid/util/Property;

    const/4 v14, 0x1

    new-array v14, v14, [F

    const/4 v15, 0x0

    const/16 v16, 0x0

    aput v16, v14, v15

    invoke-static {v13, v14}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v11

    .line 92
    .local v11, "pvhsX":Landroid/animation/PropertyValuesHolder;
    sget-object v13, Landroid/view/View;->SCALE_Y:Landroid/util/Property;

    const/4 v14, 0x1

    new-array v14, v14, [F

    const/4 v15, 0x0

    const/16 v16, 0x0

    aput v16, v14, v15

    invoke-static {v13, v14}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v12

    .line 93
    .local v12, "pvhsY":Landroid/animation/PropertyValuesHolder;
    sget-object v13, Landroid/view/View;->ALPHA:Landroid/util/Property;

    const/4 v14, 0x1

    new-array v14, v14, [F

    const/4 v15, 0x0

    const/16 v16, 0x0

    aput v16, v14, v15

    invoke-static {v13, v14}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v7

    .line 95
    .local v7, "pvhA":Landroid/animation/PropertyValuesHolder;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v13, v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    const/4 v14, 0x6

    new-array v14, v14, [Landroid/animation/PropertyValuesHolder;

    const/4 v15, 0x0

    aput-object v9, v14, v15

    const/4 v15, 0x1

    aput-object v10, v14, v15

    const/4 v15, 0x2

    aput-object v8, v14, v15

    const/4 v15, 0x3

    aput-object v11, v14, v15

    const/4 v15, 0x4

    aput-object v12, v14, v15

    const/4 v15, 0x5

    aput-object v7, v14, v15

    invoke-static {v13, v14}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;

    move-result-object v4

    .line 96
    .local v4, "animation":Landroid/animation/ObjectAnimator;
    const-wide/16 v14, 0x168

    invoke-virtual {v4, v14, v15}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 97
    new-instance v13, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v13}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v4, v13}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 98
    new-instance v14, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler$SubActionItemAnimationListener;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    sget-object v15, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;->CLOSING:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;

    move-object/from16 v0, p0

    invoke-direct {v14, v0, v13, v15}, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler$SubActionItemAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;)V

    invoke-virtual {v4, v14}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 100
    if-nez v6, :cond_145

    .line 101
    new-instance v13, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$FirstAnimationListener;

    move-object/from16 v0, p0

    invoke-direct {v13, v0}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$FirstAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;)V

    invoke-virtual {v4, v13}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 106
    :cond_131
    :goto_131
    mul-int/lit8 v13, v6, 0x4b

    int-to-long v14, v13

    invoke-virtual {v4, v14, v15}, Landroid/animation/ObjectAnimator;->setStartDelay(J)V

    .line 107
    invoke-virtual {v4}, Landroid/animation/ObjectAnimator;->start()V

    .line 108
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    invoke-virtual {v13, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 87
    add-int/lit8 v6, v6, 0x1

    goto/16 :goto_19

    .line 102
    :cond_145
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v13

    add-int/lit8 v13, v13, -0x1

    if-ne v6, v13, :cond_131

    .line 103
    new-instance v13, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$LastAnimationListener;

    move-object/from16 v0, p0

    invoke-direct {v13, v0}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$LastAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;)V

    invoke-virtual {v4, v13}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    goto :goto_131

    .line 111
    .end local v4    # "animation":Landroid/animation/ObjectAnimator;
    .end local v6    # "i":I
    .end local v7    # "pvhA":Landroid/animation/PropertyValuesHolder;
    .end local v8    # "pvhR":Landroid/animation/PropertyValuesHolder;
    .end local v9    # "pvhX":Landroid/animation/PropertyValuesHolder;
    .end local v10    # "pvhY":Landroid/animation/PropertyValuesHolder;
    .end local v11    # "pvhsX":Landroid/animation/PropertyValuesHolder;
    .end local v12    # "pvhsY":Landroid/animation/PropertyValuesHolder;
    :cond_160
    const/4 v6, 0x0

    .restart local v6    # "i":I
    :goto_161
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v13

    if-ge v6, v13, :cond_217

    .line 113
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    .line 115
    .local v5, "curItem":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    sget-object v14, Landroid/view/View;->SCALE_X:Landroid/util/Property;

    const/4 v13, 0x1

    new-array v15, v13, [F

    const/16 v16, 0x0

    move-object/from16 v0, p2

    if-ne v5, v0, :cond_1f6

    const/high16 v13, 0x40000000

    :goto_18a
    aput v13, v15, v16

    invoke-static {v14, v15}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v11

    .line 116
    .restart local v11    # "pvhsX":Landroid/animation/PropertyValuesHolder;
    sget-object v14, Landroid/view/View;->SCALE_Y:Landroid/util/Property;

    const/4 v13, 0x1

    new-array v15, v13, [F

    const/16 v16, 0x0

    move-object/from16 v0, p2

    if-ne v5, v0, :cond_1f9

    const/high16 v13, 0x40000000

    :goto_19d
    aput v13, v15, v16

    invoke-static {v14, v15}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v12

    .line 117
    .restart local v12    # "pvhsY":Landroid/animation/PropertyValuesHolder;
    sget-object v13, Landroid/view/View;->ALPHA:Landroid/util/Property;

    const/4 v14, 0x1

    new-array v14, v14, [F

    const/4 v15, 0x0

    const/16 v16, 0x0

    aput v16, v14, v15

    invoke-static {v13, v14}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v7

    .line 119
    .restart local v7    # "pvhA":Landroid/animation/PropertyValuesHolder;
    iget-object v13, v5, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    const/4 v14, 0x3

    new-array v14, v14, [Landroid/animation/PropertyValuesHolder;

    const/4 v15, 0x0

    aput-object v11, v14, v15

    const/4 v15, 0x1

    aput-object v12, v14, v15

    const/4 v15, 0x2

    aput-object v7, v14, v15

    invoke-static {v13, v14}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;

    move-result-object v4

    .line 120
    .restart local v4    # "animation":Landroid/animation/ObjectAnimator;
    const-wide/16 v14, 0x168

    invoke-virtual {v4, v14, v15}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 121
    new-instance v13, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v13}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v4, v13}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 122
    new-instance v13, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler$SubActionItemAnimationListener;

    sget-object v14, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;->CLOSING:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;

    move-object/from16 v0, p0

    invoke-direct {v13, v0, v5, v14}, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler$SubActionItemAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;)V

    invoke-virtual {v4, v13}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 124
    if-nez v6, :cond_1fc

    .line 125
    new-instance v13, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$FirstAnimationListener;

    move-object/from16 v0, p0

    invoke-direct {v13, v0}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$FirstAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;)V

    invoke-virtual {v4, v13}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 131
    :cond_1e8
    :goto_1e8
    invoke-virtual {v4}, Landroid/animation/ObjectAnimator;->start()V

    .line 132
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    invoke-virtual {v13, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 111
    add-int/lit8 v6, v6, 0x1

    goto/16 :goto_161

    .line 115
    .end local v4    # "animation":Landroid/animation/ObjectAnimator;
    .end local v7    # "pvhA":Landroid/animation/PropertyValuesHolder;
    .end local v11    # "pvhsX":Landroid/animation/PropertyValuesHolder;
    .end local v12    # "pvhsY":Landroid/animation/PropertyValuesHolder;
    :cond_1f6
    const/high16 v13, 0x3f000000

    goto :goto_18a

    .line 116
    .restart local v11    # "pvhsX":Landroid/animation/PropertyValuesHolder;
    :cond_1f9
    const/high16 v13, 0x3f000000

    goto :goto_19d

    .line 126
    .restart local v4    # "animation":Landroid/animation/ObjectAnimator;
    .restart local v7    # "pvhA":Landroid/animation/PropertyValuesHolder;
    .restart local v12    # "pvhsY":Landroid/animation/PropertyValuesHolder;
    :cond_1fc
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v13}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v13

    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v13

    add-int/lit8 v13, v13, -0x1

    if-ne v6, v13, :cond_1e8

    .line 127
    new-instance v13, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$LastAnimationListener;

    move-object/from16 v0, p0

    invoke-direct {v13, v0}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$LastAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;)V

    invoke-virtual {v4, v13}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    goto :goto_1e8

    .line 136
    .end local v4    # "animation":Landroid/animation/ObjectAnimator;
    .end local v5    # "curItem":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    .end local v7    # "pvhA":Landroid/animation/PropertyValuesHolder;
    .end local v11    # "pvhsX":Landroid/animation/PropertyValuesHolder;
    .end local v12    # "pvhsY":Landroid/animation/PropertyValuesHolder;
    :cond_217
    return-void
.end method

.method public animateMenuOpening(Landroid/graphics/Point;Landroid/animation/Animator$AnimatorListener;)V
    .registers 15
    .param p1, "center"    # Landroid/graphics/Point;
    .param p2, "listener"    # Landroid/animation/Animator$AnimatorListener;

    .prologue
    .line 42
    invoke-super {p0, p1, p2}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->animateMenuOpening(Landroid/graphics/Point;Landroid/animation/Animator$AnimatorListener;)V

    .line 44
    const/4 v7, 0x1

    invoke-virtual {p0, v7}, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->setAnimating(Z)V

    .line 46
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    invoke-virtual {v7}, Ljava/util/ArrayList;->clear()V

    .line 47
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_d
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v7

    if-ge v1, v7, :cond_153

    .line 49
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    const/4 v8, 0x0

    invoke-virtual {v7, v8}, Landroid/view/View;->setScaleX(F)V

    .line 50
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    const/4 v8, 0x0

    invoke-virtual {v7, v8}, Landroid/view/View;->setScaleY(F)V

    .line 51
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    const/4 v8, 0x0

    invoke-virtual {v7, v8}, Landroid/view/View;->setAlpha(F)V

    .line 53
    sget-object v8, Landroid/view/View;->TRANSLATION_X:Landroid/util/Property;

    const/4 v7, 0x1

    new-array v9, v7, [F

    const/4 v10, 0x0

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->x:I

    iget v11, p1, Landroid/graphics/Point;->x:I

    sub-int v11, v7, v11

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    div-int/lit8 v7, v7, 0x2

    add-int/2addr v7, v11

    int-to-float v7, v7

    aput v7, v9, v10

    invoke-static {v8, v9}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v3

    .line 54
    .local v3, "pvhX":Landroid/animation/PropertyValuesHolder;
    sget-object v8, Landroid/view/View;->TRANSLATION_Y:Landroid/util/Property;

    const/4 v7, 0x1

    new-array v9, v7, [F

    const/4 v10, 0x0

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->y:I

    iget v11, p1, Landroid/graphics/Point;->y:I

    sub-int v11, v7, v11

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    div-int/lit8 v7, v7, 0x2

    add-int/2addr v7, v11

    int-to-float v7, v7

    aput v7, v9, v10

    invoke-static {v8, v9}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v4

    .line 56
    .local v4, "pvhY":Landroid/animation/PropertyValuesHolder;
    sget-object v7, Landroid/view/View;->SCALE_X:Landroid/util/Property;

    const/4 v8, 0x1

    new-array v8, v8, [F

    const/4 v9, 0x0

    const/high16 v10, 0x3f800000

    aput v10, v8, v9

    invoke-static {v7, v8}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v5

    .line 57
    .local v5, "pvhsX":Landroid/animation/PropertyValuesHolder;
    sget-object v7, Landroid/view/View;->SCALE_Y:Landroid/util/Property;

    const/4 v8, 0x1

    new-array v8, v8, [F

    const/4 v9, 0x0

    const/high16 v10, 0x3f800000

    aput v10, v8, v9

    invoke-static {v7, v8}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v6

    .line 58
    .local v6, "pvhsY":Landroid/animation/PropertyValuesHolder;
    sget-object v7, Landroid/view/View;->ALPHA:Landroid/util/Property;

    const/4 v8, 0x1

    new-array v8, v8, [F

    const/4 v9, 0x0

    const/high16 v10, 0x3f800000

    aput v10, v8, v9

    invoke-static {v7, v8}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v2

    .line 60
    .local v2, "pvhA":Landroid/animation/PropertyValuesHolder;
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    const/4 v8, 0x5

    new-array v8, v8, [Landroid/animation/PropertyValuesHolder;

    const/4 v9, 0x0

    aput-object v3, v8, v9

    const/4 v9, 0x1

    aput-object v4, v8, v9

    const/4 v9, 0x2

    aput-object v5, v8, v9

    const/4 v9, 0x3

    aput-object v6, v8, v9

    const/4 v9, 0x4

    aput-object v2, v8, v9

    invoke-static {v7, v8}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 61
    .local v0, "animation":Landroid/animation/ObjectAnimator;
    const-wide/16 v8, 0x168

    invoke-virtual {v0, v8, v9}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 62
    new-instance v7, Landroid/view/animation/OvershootInterpolator;

    invoke-direct {v7}, Landroid/view/animation/OvershootInterpolator;-><init>()V

    invoke-virtual {v0, v7}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 63
    new-instance v8, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler$SubActionItemAnimationListener;

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    sget-object v9, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;->OPENING:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;

    invoke-direct {v8, p0, v7, v9}, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler$SubActionItemAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$ActionType;)V

    invoke-virtual {v0, v8}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 65
    if-nez v1, :cond_13c

    .line 66
    new-instance v7, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$FirstAnimationListener;

    invoke-direct {v7, p0}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$FirstAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;)V

    invoke-virtual {v0, v7}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 72
    :cond_12a
    :goto_12a
    mul-int/lit8 v7, v1, 0x4b

    int-to-long v8, v7

    invoke-virtual {v0, v8, v9}, Landroid/animation/ObjectAnimator;->setStartDelay(J)V

    .line 73
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 74
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    invoke-virtual {v7, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 47
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_d

    .line 67
    :cond_13c
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->menu:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getSubActionItems()Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v7

    add-int/lit8 v7, v7, -0x1

    if-ne v1, v7, :cond_12a

    .line 68
    new-instance v7, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$LastAnimationListener;

    invoke-direct {v7, p0}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler$LastAnimationListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;)V

    invoke-virtual {v0, v7}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    goto :goto_12a

    .line 77
    .end local v0    # "animation":Landroid/animation/ObjectAnimator;
    .end local v2    # "pvhA":Landroid/animation/PropertyValuesHolder;
    .end local v3    # "pvhX":Landroid/animation/PropertyValuesHolder;
    .end local v4    # "pvhY":Landroid/animation/PropertyValuesHolder;
    .end local v5    # "pvhsX":Landroid/animation/PropertyValuesHolder;
    .end local v6    # "pvhsY":Landroid/animation/PropertyValuesHolder;
    :cond_153
    return-void
.end method

.method public cancelAnimating()V
    .registers 4

    .prologue
    .line 179
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_26

    .line 180
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_e
    :goto_e
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_26

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/animation/Animator;

    .line 181
    .local v0, "animator":Landroid/animation/Animator;
    if-eqz v0, :cond_e

    invoke-virtual {v0}, Landroid/animation/Animator;->isRunning()Z

    move-result v2

    if-eqz v2, :cond_e

    .line 182
    invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V

    goto :goto_e

    .line 187
    .end local v0    # "animator":Landroid/animation/Animator;
    :cond_26
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->mAnimators:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    .line 188
    return-void
.end method

.method public isAnimating()Z
    .registers 2

    .prologue
    .line 140
    iget-boolean v0, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->animating:Z

    return v0
.end method

.method protected setAnimating(Z)V
    .registers 2
    .param p1, "animating"    # Z

    .prologue
    .line 145
    iput-boolean p1, p0, Lcom/zuimeia/ui/floatingactionmenu/animation/DefaultAnimationHandler;->animating:Z

    .line 146
    return-void
.end method
